home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _2D6985CE8F8249D6BE89FFCB59CA51E4 < prev    next >
Encoding:
Text File  |  2001-09-24  |  4.1 KB  |  123 lines

  1. //===========================================================================
  2. //
  3. // Name:            match.h
  4. // Function:        match template defines
  5. // Programmer:        Mr Elusive
  6. // Last update:
  7. // Tab Size:        4 (real tabs)
  8. //
  9. //===========================================================================
  10.  
  11. // make sure this is the same character as we use in chats in g_cmd.c
  12. #define EC    "\x19"
  13.  
  14. //match template contexts
  15. #define MTCONTEXT_MISC                    2
  16. #define MTCONTEXT_INITIALTEAMCHAT        4
  17. #define MTCONTEXT_TIME                    8
  18. #define MTCONTEXT_TEAMMATE                16
  19. #define MTCONTEXT_ADDRESSEE                32
  20. #define MTCONTEXT_PATROLKEYAREA            64
  21. #define MTCONTEXT_REPLYCHAT                128
  22. #define MTCONTEXT_CTF                    256
  23.  
  24. //message types
  25. #define MSG_NEWLEADER                    1        //new leader
  26. #define MSG_ENTERGAME                    2        //enter game message
  27. #define MSG_HELP                        3        //help someone
  28. #define MSG_ACCOMPANY                    4        //accompany someone
  29. #define MSG_DEFENDKEYAREA                5        //defend a key area
  30. #define MSG_RUSHBASE                    6        //everyone rush to base
  31. #define MSG_GETFLAG                        7        //get the enemy flag
  32. #define MSG_STARTTEAMLEADERSHIP            8        //someone wants to become the team leader
  33. #define MSG_STOPTEAMLEADERSHIP            9        //someone wants to stop being the team leader
  34. #define MSG_WHOISTEAMLAEDER                10        //who is the team leader
  35. #define MSG_WAIT                        11        //wait for someone
  36. #define MSG_WHATAREYOUDOING                12        //what are you doing?
  37. #define MSG_JOINSUBTEAM                    13        //join a sub-team
  38. #define MSG_LEAVESUBTEAM                14        //leave a sub-team
  39. #define MSG_CREATENEWFORMATION            15        //create a new formation
  40. #define MSG_FORMATIONPOSITION            16        //tell someone his/her position in a formation
  41. #define MSG_FORMATIONSPACE                17        //set the formation intervening space
  42. #define MSG_DOFORMATION                    18        //form a known formation
  43. #define MSG_DISMISS                        19        //dismiss commanded team mates
  44. #define MSG_CAMP                        20        //camp somewhere
  45. #define MSG_CHECKPOINT                    21        //remember a check point
  46. #define MSG_PATROL                        22        //patrol between certain keypoints
  47. #define MSG_LEADTHEWAY                    23        //lead the way
  48. #define MSG_GETITEM                        24        //get an item
  49. #define MSG_KILL                        25        //kill someone
  50. #define MSG_WHEREAREYOU                    26        //where is someone
  51. #define MSG_RETURNFLAG                    27        //return the flag
  52. #define MSG_WHATISMYCOMMAND                28        //ask the team leader what to do
  53. #define MSG_WHICHTEAM                    29        //ask which team a bot is in
  54. #define MSG_TASKPREFERENCE                30        //tell your teamplay task preference
  55. #define MSG_ATTACKENEMYBASE                31        //attack the enemy base
  56. #define MSG_HARVEST                        32        //go harvest
  57. #define MSG_SUICIDE                        33        //order to suicide
  58. //
  59. #define MSG_ME                            100
  60. #define MSG_EVERYONE                    101
  61. #define MSG_MULTIPLENAMES                102
  62. #define MSG_NAME                        103
  63. #define MSG_PATROLKEYAREA                104
  64. #define MSG_MINUTES                        105
  65. #define MSG_SECONDS                        106
  66. #define MSG_FOREVER                        107
  67. #define MSG_FORALONGTIME                108
  68. #define MSG_FORAWHILE                    109
  69. //
  70. #define MSG_CHATALL                        200
  71. #define MSG_CHATTEAM                    201
  72. #define MSG_CHATTELL                    202
  73. //
  74. #define MSG_CTF                            300        //ctf message
  75.  
  76. //command sub types
  77. #define ST_SOMEWHERE                    0
  78. #define ST_NEARITEM                        1
  79. #define ST_ADDRESSED                    2
  80. #define ST_METER                        4
  81. #define ST_FEET                            8
  82. #define ST_TIME                            16
  83. #define ST_HERE                            32
  84. #define ST_THERE                        64
  85. #define ST_I                            128
  86. #define ST_MORE                            256
  87. #define ST_BACK                            512
  88. #define ST_REVERSE                        1024
  89. #define ST_SOMEONE                        2048
  90. #define ST_GOTFLAG                        4096
  91. #define ST_CAPTUREDFLAG                    8192
  92. #define ST_RETURNEDFLAG                    16384
  93. #define ST_TEAM                            32768
  94. #define ST_1FCTFGOTFLAG                    65535
  95. //ctf task preferences
  96. #define ST_DEFENDER                        1
  97. #define ST_ATTACKER                        2
  98. #define ST_ROAMER                        4
  99.  
  100.  
  101. //word replacement variables
  102. #define THE_ENEMY                        7
  103. #define THE_TEAM                        7
  104. //team message variables
  105. #define NETNAME                            0
  106. #define PLACE                            1
  107. #define FLAG                            1
  108. #define MESSAGE                            2
  109. #define ADDRESSEE                        2
  110. #define ITEM                            3
  111. #define TEAMMATE                        4
  112. #define TEAMNAME                        4
  113. #define ENEMY                            4
  114. #define KEYAREA                            5
  115. #define FORMATION                        5
  116. #define POSITION                        5
  117. #define NUMBER                            5
  118. #define TIME                            6
  119. #define NAME                            6
  120. #define MORE                            6
  121.  
  122.  
  123.